package com.deyang.share.dao;

import java.util.List;

import com.deyang.share.model.User;
import org.springframework.stereotype.Repository;

/**
 *用户访问类
 * @author Administrator
 *
 */
public interface UserDao {
	
	/**
	 * 添加用户
	 * @param user
	 */
	public void addUser(User user);
	
	/**
	 * 删除用户
	 * @param user
	 */
	public void deleteUser(User user);
	
	/**
	 *根据ID删除用户
	 * @param id
	 */
	public void deleteUserById(Long id);
	
	/**
	 * �����û�
	 * @param user
	 */
	public void updateUser(User user);
	
	/**
	 * 根据ID获得用户
	 * @param id
	 * @return
	 */
	public User getUserById(Long id);
	
	/**
	 * 获取所有用户
	 * @return
	 */
	public List<User> getAllUser();
	

}
